import 'package:flutter/material.dart';
import 'package:one_flutter/main.dart';

class WGRouter {

  static final main = 'main';
  static final pathPage1 = 'page_1';
  static final pathPage2 = 'page_2';
  static final pathPage3 = 'page_3';

//  static final Map<String, WidgetBuilder> routes = {
//    main: (ctx) => MyApp(),
//    pathPage1: (ctx){
//      return Page1();
//    },
//    pathPage2: (ctx) => Page2(),
//  };
//
//
//  static final RouteFactory generateRoute = (settings) {
//    if (settings.name == pathPage3) {
//      return MaterialPageRoute(
//          builder: (ctx) {
//            return Page3(settings.arguments);
//          }
//      );
//    }
//    return null;
//  };
//
//  static final RouteFactory unknownRoute = (settings) {
//    return MaterialPageRoute(
//        builder: (ctx) {
//          return WGUnknownPage();
//        }
//    );
//  };
}